"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

var _useMergedState3 = _interopRequireDefault(require("rc-util/lib/hooks/useMergedState"));

function useMountMergeState(initialState, option) {
  var _useMergedState = (0, _useMergedState3.default)(initialState, option),
      _useMergedState2 = (0, _slicedToArray2.default)(_useMergedState, 2),
      state = _useMergedState2[0],
      setState = _useMergedState2[1];

  return [state, setState];
}

var _default = useMountMergeState;
exports.default = _default;